package com.itheima.mapper;

import com.github.pagehelper.Page;
import com.itheima.pojo.AssessmentRisk;
import com.itheima.pojo.Member;
import com.itheima.pojo.PatientCategory;

import java.util.List;
import java.util.Map;

public interface MemberMapper {
    public List<Member> findAll();
    public Page<Member> selectByCondition(String queryString);
    public void add(Member member);
    public void deleteById(Integer id);
    public Member findDetailById(Integer id);
    public Member findByTelephone(String telephone);
    public void edit(Member member);
    public Integer findMemberCountBeforeDate(String date);
    public Integer findMemberCountByDate(String date);
    public Integer findMemberCountAfterDate(String date);
    public Integer findMemberTotalCount();

    Integer findCountByDate(String dateString);

    Integer findCountAll();

    Integer findCountOfDateScope(String startDateStr, String endDateStr);
    Integer findCountByCount(String dateString);

    Page<Map> findPageBySC(String value);


    void deleteOrderByMemberId(Integer memberId);

    void updateTypeById(Integer memberId);

    void setFileName(Map<String,Object> map);

    Map findFileName(Integer memberId);

    void deleteDoc(Integer memberId);

    Member getMember(String fileNumber);


    Page<Member> findByCondition(String queryString);
	

    //通过条件查询会员信息,内部级联查询病情分类,以及关联的健康管理师
    Page<PatientCategory> findByCondition2(String queryString);


    List<Map<String, Object>> findAccessDataById(Integer id);


    void editHealthManager(Integer memberId,Integer healthManagerId);

    void editCategoryStatus(Integer memberId);

    String findMedicalReportName(String fileNumber);

    AssessmentRisk findAccessReport(String fileNumber);


	
    void delete(int id);
    List<Integer> findAllCategory(Integer id);
   void deleteCategoryById(Integer id);


}
